package com.jic.product.entity;

import com.jic.product.entity.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 商品SKU表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-02-06 01:47:28
 */
@Getter
@Setter
public class ProductSku extends BaseEntity {

    //主键id
    private long id;
    //商品外键id
    private long productId;
    //销售属性组合字符串 格式是p1:v1;p2:v2
    private String properties;
    //排序值
    private Integer sortValue;
    //类型,1、文描 2、系列 4、导购
    private Integer type;
    //商品条形码
    private String barCode;
    //第三方商品编码
    private String thirdProductCode;
    //零售价
    private BigDecimal salePrice;
    //市场价
    private BigDecimal marketPrice;
    //采购价
    private BigDecimal purchasePrice;
    //团购价
    private BigDecimal groupBuyingPrice;

}